﻿using System.Collections.Generic;
using UnityEngine;

/// <summary>
/// 子弹发射器 基类
/// </summary>
public class MissileGun : HGun
{
    private void Start()
    {
        fireRate = 0.4f;
        bulletSpeed = 4;
    }

    public override void Fire()
    {
        if(CanFire(lastFireTime))
        {
            lastFireTime = Time.time;

            for (int i = 0; i < firePoints.Length; i++)
            {
                CreateBullet(firePoints[i]);
            }
        }
    }

}
